package com.foreveross.mofang.datapersistence.infra.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 日志对象枚举类
 * 
 * @author zhaoyang
 * @date Oct 23, 2012
 */
public enum MoFangLogger {
	
	/**
	 * 文件相关操作日志记录
	 */
	FILEOPERATION("fileOperation"),
	
	/**
	 * mq消息发送日志
	 */
	MQ_MESSAGE("mqMessage"),
	
	/**
	 * 文件记录数据入库异常日志
	 */
	DATA_SAVEERROR("dataSaveError");
	
	
	private final Logger log;
	
	
	MoFangLogger(String name) {
		log = LoggerFactory.getLogger(name);
	}
	
	/**
	 * 获取相关枚举的日志实例对象
	 * 
	 * @return Logger
	 */
	public Logger getLogger() {
		return log;
	}

}
